{extend name="layouts@base" /}
{block name="head"}
<link rel="stylesheet" href="__STATIC__/mobile/default/css/wallet.css" />
{/block}
{block name="pageType"}myWallet{/block}
{block name="main" }
<div class="page-bd">
    <!-- 页面内容-->
    <div class="top">
        <div class="money">
            <p class="fs48 num color_w balance_money">0.00</p>
            <!-- <a href="{:url('recharge')}" class="fs24 color_w withdrwa_btn ">充值</a> -->
            <!-- <span class="fs26 color_w">待返广告费</span><p class="fs48 num color_w use_integral">0</p> -->
            <a href="{:url('withdraw/index')}" class="fs24 color_w withdrwa_btn ">提现</a>

        </div>
        <span class="fs26 color_w num">余额</span>
       

        <div class="tips">
            <div class="color_w fs26">待返广告费 ￥ <p class="fs48 num color_w bean_value">0</p></div>
        </div>

    </div>

    <div class="cellBox">
        <!--<a href="{:url('mylog')}">-->
            <!--<div><img src="__STATIC__/mobile/default/images/wallet01.png" alt=""><span class="fs30 fw_b color_3">帐户明细</span></div>-->
            <!--<img src="__STATIC__/mobile/default/images/rightIcon.png" alt="" class="rightIcon">-->
        <!--</a>-->
        <a href="{:url('mylog')}">
            <div><img src="__STATIC__/mobile/default/images/wallet01.png" alt=""><span class="fs30 fw_b color_3">余额明细</span></div>
            <img src="__STATIC__/mobile/default/images/rightIcon.png" alt="" class="rightIcon">
        </a>
        <a href="{:url('bmylog')}">
            <div><img src="__STATIC__/mobile/default/images/wallet01.png" alt=""><span class="fs30 fw_b color_3">待返广告费明细</span></div>
            <img src="__STATIC__/mobile/default/images/rightIcon.png" alt="" class="rightIcon">
        </a>
        <!--<a href="{:url('leaderboard')}" class="hide">-->
            <!--<div><img src="__STATIC__/mobile/default/images/wallet02.png" alt=""><span class="fs30 fw_b color_3">排行榜</span></div>-->
            <!--<img src="__STATIC__/mobile/default/images/rightIcon.png" alt="" class="rightIcon">-->
        <!--</a>-->
    </div>
</div>


{/block}

{block name="footer"}
<script type="text/javascript">
    $(function () {
        //加载会员数据
        jq_ajax('{:url("member/api.users/getAccount")}','',function (res) {
            if (res.code==0){
                _alert(res.msg);
                return false;
            }
            $('.balance_money').html(res.account.balance_money);
			$('.total_income').html(res.account.total_dividend);
            $('.frozen_amount').html(res.frozen_amount);
            $('.bean_value').html(res.account.bean_value);
            if (res.account.bean_value > 0){
                 $('.withdrwa_btn').removeClass('hide');
             }
			$('.today_income').html(res.today_income);
			$('.month_income').html(res.month_income);
			if (res.withdraw_status == 1){
				$('.withdrwa_btn').removeClass('hide');
			}
        })
    })
</script>

{/block}